package com.mco.controller;

import com.mco.entity.User;
import com.mco.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：liao.wei
 * @description ： 用户接口
 * @date ：2023/9/15 18:33
 */
@RequiredArgsConstructor
@RestController
@RequestMapping
public class UserController {
	
	private final UserService userService;
	@GetMapping("find")
	public User findUserById(Integer id){
		return userService.findById(id);
	}
}
